package com.doit.day07

object _07_隐式类 {
  def main(args: Array[String]): Unit = {

    implicit class Snake(ant:String){
      def eatElephant()={
        println("我可以吃大象")
      }
    }
//    val ant: Ant = new Ant
//    ant.eatElephant()
  }
}


//蚂蚁吃大象
class Ant(){

}






